package com.kuang.dao;

import com.kuang.pojo.Readers;
import com.kuang.pojo.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {


    Boolean queryNP(@Param("Name") String Name,@Param("Pass") String Pass);

    Boolean updatepass(@Param("Name")String userName,@Param("old") String old,@Param("now") String now);

    Boolean insert(@Param("Name")String Name,@Param("Pass") String Pass);


    List<Users> alluser();

    int deleteuser(int id);
}
